package FreshmanMain;

import java.util.Scanner;

public class Register {

    public static student register(){
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入姓名 ：");
        String name =scanner.next();
        System.out.println("请输入学号 ：");
        String id =scanner.next();
        System.out.println("请输入性别 ：");
        String sex=scanner.next();
        System.out.println("请输入电话 ：");
        String tel = scanner.next();
        System.out.println("请输入出生日期 ：");
        String birth = scanner.next();
        System.out.println("请输入籍贯 ：");
        String address = scanner.next();
        System.out.println("请输入邮箱 ：");
        String email = scanner.next();
        return new student(name,id,sex,tel,birth,address,email);
    }
}

@SuppressWarnings({"all"})
class student{

    String name;
    String id;
    String sex;
    String tel;
    String birth;
    String address;
    String email;

    public student(String name, String id, String sex, String tel, String birth, String address, String email) {
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.tel = tel;
        this.birth = birth;
        this.address = address;
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getBirth() {
        return birth;
    }

    public void setBirth(String birth) {
        this.birth = birth;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }
}